package org.helyx.gae.getabike.model;

import java.util.ArrayList;
import java.util.List;

public class City {

	private String key;
	
	private String name;
	
	private String serviceName;
	
	private String type;
	
	private String webSiteUrl;

	private String stationListUri;
	
	private String stationDetailsUri;
	
	private boolean bonus;
	
	private boolean state;
	
	private boolean tpe;
	
	private boolean localization;
	
	private boolean details;
	
	private String normalizer;
	
	private String country;
	
	private List<Quartier> quartierList = new ArrayList<Quartier>();

	
	public City() {
		super();
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getWebSiteUrl() {
		return webSiteUrl;
	}

	public void setWebSiteUrl(String webSite) {
		this.webSiteUrl = webSite;
	}

	public String getStationListUri() {
		return stationListUri;
	}

	public void setStationListUri(String stationList) {
		this.stationListUri = stationList;
	}

	public String getStationDetailsUri() {
		return stationDetailsUri;
	}

	public void setStationDetailsUri(String stationDetails) {
		this.stationDetailsUri = stationDetails;
	}

	public boolean isBonus() {
		return bonus;
	}

	public void setBonus(boolean bonus) {
		this.bonus = bonus;
	}

	public boolean isState() {
		return state;
	}

	public void setState(boolean state) {
		this.state = state;
	}

	public boolean isTpe() {
		return tpe;
	}

	public void setTpe(boolean tpe) {
		this.tpe = tpe;
	}

	public boolean isLocalization() {
		return localization;
	}

	public void setLocalization(boolean localization) {
		this.localization = localization;
	}

	public boolean isDetails() {
		return details;
	}

	public void setDetails(boolean details) {
		this.details = details;
	}

	public String getNormalizer() {
		return normalizer;
	}

	public void setNormalizer(String normalizer) {
		this.normalizer = normalizer;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public List<Quartier> getQuartierList() {
		return quartierList;
	}

	public void setQuartierList(List<Quartier> quartierList) {
		this.quartierList = quartierList;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer("[City]")
		.append(" key=").append(key)
		.append(", name=").append(name)
		.append(", serviceName=").append(serviceName)
		.append(", type=").append(type)
		.append(", webSite=").append(webSiteUrl)
		.append(", stationList=").append(stationListUri)
		.append(", stationDetails=").append(stationDetailsUri)
		.append(", bonus=").append(bonus)
		.append(", details=").append(details)
		.append(", state=").append(state)
		.append(", tpe=").append(tpe)
		.append(", country=").append(country)
		.append(", localization=").append(localization)
		.append(", normalizer=").append(normalizer)
		.append(", quartiers: [");
		
		int quartierCount = quartierList.size();
		for (int i = 0 ; i < quartierCount ; i++) {
			Quartier quartier = (Quartier)quartierList.get(i);
			sb.append(quartier.toString());
			if (i + 1 < quartierCount) {
				sb.append(", ");
			}
		}
		sb.append("]");
		
		return sb.toString();
	}

}
